package pl.edu.agh.gt.stock;

import pl.edu.agh.gt.data.Rate;

public class CounterBrokerImpl implements Broker {

	public float ask (Rate rate, float quoteCurrAmount) {
		return (quoteCurrAmount * rate.getClose());		
	}
	
	public float bid (Rate rate, float baseCurrAmount) {
		return  (baseCurrAmount / rate.getClose()) * (1 - COMISSION);		
	}

}
